home *** CD-ROM | disk | FTP | other *** search
- Path: logica.co.uk!usenet
- From: savillj@logica.com (John Savill)
- Newsgroups: comp.lang.c++
- Subject: How to change the main window title?
- Date: 21 Feb 1996 08:02:22 GMT
- Organization: Logica
- Message-ID: <4gejie$eaj@romeo.logica.co.uk>
- NNTP-Posting-Host: 158.234.77.147
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Sorry if this seems a stupid question however I have just started to use
- Visual C++ 2.0 and use the new project wizard to automatically setup the main
- files. To create the main application window it uses the code below, however
- it sets the main window title to be "FASTManage - Untitled", and I would like
- to set it to just "FASTManage". I tried adding the line shown with a *,
- however it appears to have no affect.
-
- int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
- {
- **** lpCreateStruct->lpszName="FASTManage"; ****
- if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- I suspect you need to suppress the application from displaying the document
- name, however I do not know how to do this, and have no idea what the
- consequences of this would be.
-
-
- A seperate question is that the application I need to write should have a main
- small window with the toolbar buttons and a status, and then should generate
- new sperate windows but OUTSIDE the main application window to display various
- information. Is this very hard to do?
-
-
- Any help would be grately appreciated.
-
- Thanks
-
- John
-
-